﻿using System;
using System.Collections.Generic;
using com.IronOne.BoardPACWinApp.Common;
using com.IronOne.BoardPACWinAppBO.Category;
using com.IronOne.BoardPACWinAppUtil.Util;

// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238

namespace com.IronOne.BoardPACWinApp.View.UserControl.SettingPanels
{
    /// <summary>
    ///     An empty page that can be used on its own or navigated to within a Frame.
    /// </summary>
    public sealed partial class SettingActivityLog
    {
        public SettingActivityLog()
        {
            InitializeComponent();

            var model = new List<SubCategoryModel>();
            for (var i = 0; i < 30; i++)
            {
                var m = new SubCategoryModel();
                var last = Utility.GetDate(DateTime.Now.AddDays(i*-1)).ToString(Global.DateFormat);
                m.ShortName = "Logs (" + last + ")";
                model.Add(m);
            }

            LogsListView.DataContext = model;
        }
    }
}